export const AppNames = {
  Template: 'template',
  UserManagement: 'userManagement',
  LogsAudit: 'logsAudit',
  Firewall: 'firewall',
  EShield: 'eshield',
  CloudAudit: 'cloudAudit',
};

export interface SubApp {
  name: string,
  abbr?: string,
  localPort: number,
  isShowInMenu?: boolean,
  productGroup?: string,
}

export const subAppViewportId = 'sub-app-viewport';

const subApps: SubApp[] = [
  { name: AppNames.Template, abbr: '*template*', localPort: 7098, productGroup: 'template' },
  { name: AppNames.UserManagement, localPort: 7099, isShowInMenu: false },
  { name: AppNames.LogsAudit, abbr: 'LAS', localPort: 7102, productGroup: 'security' },
  { name: AppNames.Firewall, abbr: 'NGFW', localPort: 7103, productGroup: 'security' },
  { name: AppNames.EShield, abbr: 'HIDS', localPort: 7104, productGroup: 'security' },
  { name: AppNames.CloudAudit, abbr: 'ADS', localPort: 7105, productGroup: 'security' },
];

/**
 * 为 web 和 node service 在构建、运行时提供 QianKun 子应用的基本设置清单。
 */
export default subApps;
